package com.wangyuhang.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface userDao {
    @Update("update test2 set salary=salary+#{salary} where name=#{name1}")
    void add(@Param("salary")int salary,@Param("name1") String name1);

    @Update("update test2 set salary=salary-#{salary} where name=#{name2}")
    void reduce(@Param("salary")int salary,@Param("name2") String name2);
}
